import request from '@/utils/request'

export function searchRoster(params) {
  return request({
    url: '/roster/search',
    method: 'get',
    params
  })
}

export function save(params) {
  return request({
    url: '/roster/save',
    method: 'get',
    params
  })
}

export function deleteById(id_now) {
  return request({
    url: '/roster/delete',
    method: 'delete',
    params:{
      id: id_now
    }
  })
}